package com.open.capacity.service;

import com.github.pagehelper.PageInfo;
import com.open.capacity.model.OrderAndStation;

import java.util.List;

/**
 * @author: y_022
 * @date: 9:29-2021/6/25
 * @description:
 */
public interface OrderService {
    OrderAndStation addOrder(OrderAndStation orderModel);

    List<OrderAndStation> findOrderByUserId(OrderAndStation orderModel);

    PageInfo<OrderAndStation> findPaidOrder(OrderAndStation orderModel);

    List<OrderAndStation> findUnpaidOrder(OrderAndStation orderModel);

    void cancelOrder(OrderAndStation orderModel);

    void leaseRenewal(OrderAndStation orderModel);

    void completePay(OrderAndStation orderModel);

    OrderAndStation findStationByOrdeid(OrderAndStation orderAndStation);

    void orderTimeEnd(String orcode);

    List<OrderAndStation> findUsingOrder(OrderAndStation orderAndStation);

    void InvalidationOrder(String orcode);

    List<OrderAndStation> findInvalidationOrder(OrderAndStation orderAndStation);
}
